﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Eco.ObjectRepresentation;
using Eco.Services;
using EcoProject1;

namespace MvcApplication1.Controllers
{
  public class HomeController : Controller
  {
    public ActionResult Index()
    {
      ViewBag.Message = "MDriven license and support tickets admin";
      /* DEBUG
      var es = new EcoProject1EcoSpace();
      ViewBag.Message += " c1";
      try
      {
        es.Active = true;
        var y=EcoServiceHelper.GetOclService(es).Evaluate("Product.allinstances")as IObjectList;
        ViewBag.Message += " " + y.Count;
      }
      catch (Exception e)
      {
        ViewBag.Message += e.Message;
        ViewBag.Message += e.StackTrace.ToString(); ;
      }*/
      return View();
    }

    public ActionResult About()
    {
      ViewBag.Message = "CapableObjects innovate and market model driven techniques for system development";

      return View();
    }

    public ActionResult Contact()
    {
      ViewBag.Message = "Read more at capableObjects.com";

      return View();
    }

    public ActionResult Test()
    {
      ViewBag.Message = "Read more at capableObjects.com";
      ViewBag.Message = "Read more at capableObjects.com";
      return View();
    }

  }
}
